<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

SessionID:<%= session.getId()%><br/><br/>

IsNew:<%= session.isNew()%><br/><br/>

MaxInactiveInterval:<%= session.getMaxInactiveInterval()%><br/><br/>

创建时间:<%= session.getCreationTime()%><br/><br/>

上次访问时间:<%= session.getLastAccessedTime()%><br/><br/>

<br/><br/>
Hello:<%= request.getParameter("username")%><br/><br/>

<%
    session.setAttribute("username", request.getParameter("username"));
%>

<a href="login.jsp">重新登录</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="logout.jsp">注销</a>

</body>
</html>
